﻿using MediatR;
using ReturnValue;

namespace MES.Server.API.Application.Command.Production_Modules
{
    public class ProduceCreateCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 生产编号
        /// </summary>
        public string ProduceCode { get; set; }
        /// <summary>
        /// 生产工单名称
        /// </summary>
        public string ProduceName { get; set; }

        /// <summary>
        /// 生产类型
        /// </summary>
        public int ProduceType { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        public long ClientId { get; set; }
        /// <summary>
        /// 当前商品外键
        /// </summary>
        public long OrderId { get; set; }
        /// <summary>
        /// 产品物料群组ID
        /// </summary>
        public long MaterialGroupId { get; set; }

        /// <summary>
        /// 仓库地址(仓库外键)
        /// </summary>
        public long WarehouseId { get; set; }

        /// <summary>
        /// 工艺ID
        /// </summary>
        public long ProcessFlowId { get; set; }
        /// <summary>
        /// 车间外键
        /// </summary>
        public long WorkShopId { get; set; }
        /// <summary>
        /// 产线ID
        /// </summary>
        public long ProductionLineId { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartDate { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EntDate { get; set; }

        /// <summary>
        /// 生产数量
        /// </summary>
        public int ProduceNum { get; set; }
        /// <summary>
        /// 已生产数量
        /// </summary>
        public int FinishProduceNum { get; set; }
        /// <summary>
        /// 检查状态
        /// </summary>
        public bool Ischeck { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreaterPeople { get; set; }
     

    }
}
